//引入mock模块
import Mock from 'mockjs';

//获取所有用户信息
Mock.mock('/getAllUser', 'get', {
  //输出数据
  "code": 0,
  "message": "success",
  "update_time": "@now",
  "data|10": [{
    "id": "@id", //随机ID
    "username": "@cname", //中文姓名
    "phone": /^1[345789]\d{9}$/, //手机号
    "email": "@email", //随机邮箱
    "city": "@city", //中文城市
  }]
});
